Skip to content

fix(menus): menus keep under the menu bar, at most three quarters of the window, with a more-below hint (0.11.0) - #30

Merged
nodemode-ai merged 4 commits into
mainfrom
fix/menu-under-bar-0.11.0
Nov 30, 2026
Merged

nodemode-ai merged 4 commits into
mainfrom
fix/menu-under-bar-0.11.0

Conversation

@nodemode-ai

Copy link
Copy Markdown
Contributor

fix(menus): menus keep under the menu bar, at most three quarters of the window, with a more-below hint (0.11.0)

Summary

  • Menu bar menus no longer cover the menu bar. Cause: MenuBar.open placed them with PopupMenu.openAt, the routine for a point, which flipped a menu that did not fit below its button above it and clamped it to 4 px from the window top; the stylesheet cap calc(100vh - 8px) was taller than the room under the bar. Fix: a new openUnder keeps the top at the button's bottom plus 4 px and sets an inline max-height of min(75% of the window, room to the bottom less 4 px) while the menu is hidden, before it is measured. Right to left the menu's left is still the button's right edge less the menu's width.
  • Submenus (Edit > Preferences) take the same cap and are never placed above the bar: openBeside reads the top menu's floor instead of clamping to the window top.
  • New more-below hint: a cut-off menu fades its last rows into its own glass and shows a 56 by 12 px pill with a down chevron while rows remain below; it goes at the last row (160 ms) and returns when scrolled up (490 ms), is in place on the first painted frame, and switches without a fade under reduced motion. The rows moved into a scrolling .cv-menu-list inside the card so the mask does not fade the glass, border or shadow.
  • openAt (point-anchored menus) gets the same floor (the .cv-menubar bottom edge, or the window top when the bar is hidden for the macOS system menus), cap and hint, and keeps its pointer-corner placement. FormNET has no caller of openAt today; this keeps the routine right for any future right-click menu.
  • The CHANGELOG's Unreleased section (agent approvals in the window, HAR redaction) is released under 0.11.0 with the menu changes.

Commits

  • fix(menus): menu bar menus and their submenus open under the bar, at most three quarters of the window tall
  • feat(menus): a menu cut off by the cap shows a fade and a pill at its bottom while rows remain below
  • fix(menus): menus opened at a point keep under the bar, take the same cap and show the hint
  • chore(release): 0.11.0

Version

v0.11.0 (release commit is last). Bumped: Makefile VERSION (formcompiler's version file), the README badge, src-tauri/Cargo.toml, the formnet-desktop entry in src-tauri/Cargo.lock, src-tauri/tauri.conf.json, web/package.json and the two own-version fields of web/package-lock.json. CHANGELOG.md has a 0.11.0 section. No committed demo bundles in this repo.

Checks

  • tsc --noEmit -p tsconfig.json in web/: clean, after each commit.
  • npm run build in web/ (type check and Vite production build): passes.
  • Headless Chrome on the production build served statically (?token= set, no server behind it), CPU slowed 4 times, all five bar menus at 1280x800 and 1000x480: every menu's top was 38 in every frame while it opened, under the bar's bottom edge at 33.5, and inside the window. At 1280x800 every menu fits (tallest View, 512 of a 600 cap), no hint. At 1000x480 View is 360 tall (75% of 480), hint on and pill opacity 1 when measured after opening, off after scrolling the list to its end; the other menus fit and show no hint.
  • Before, the same probe on a build of origin/main: View at 1000x480 opened at top 4, 472 tall, over the bar whose bottom edge is at 33.5.
  • Submenu at 1000x320, CPU slowed 4 times: Edit > Preferences opened at top 76, 240 tall (the cap), bottom 316, hint on.
  • Keyboard at 1000x480: View opened from the bar with ArrowDown shows the hint; End focuses the last enabled row and the hint goes; Home brings it back.
  • Right to left (dir="rtl" set on the page) at 1000x480: View's right edge 911 equals its button's right edge 911.
  • Not run: the 1871x1080 and 1280x720 sizes and 800x320 for bar menus; the hint timings (part way at about 80 ms and 245 ms, gone by 380 ms, back by 750 ms) and a frame-by-frame check that the pill is at full opacity in the first painted frame; arrowing down while checking that the focused row never sits in the fade; right-click menus, because FormNET has none (no caller of openAt); the window smoke (web/tests/window/test_window.py) and make check / make test, which need the Go server built; Go, Rust and Tauri builds; the desktop app on Linux, Windows and macOS with Menus in Window. No browser demo bundles exist to open from file://. DOM law: verified under throttling for position and size (the menu's top never above 38 in any frame while opening, CPU 4 times slower); the hint's first frame was not frame-sampled.

Merging

Merge with a merge commit so each commit and its signature stays. Do not squash.

@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner November 30, 2026 21:44
@nodemode-ai
nodemode-ai merged commit 4ac084e into main Nov 30, 2026
5 checks passed
@nodemode-ai
nodemode-ai deleted the fix/menu-under-bar-0.11.0 branch November 30, 2026 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant